package mysql

import "gorm.io/gorm"

type Problem struct {
	gorm.Model
	Title   string `gorm:"type:varchar(20);not null;comment:问题标题"`
	Context string `gorm:"type:varchar(100);not null;comment:问题内容"`
	UserId  int    `gorm:"type:int(11);not null;comment:提问用户id"`
	Heat    int    `gorm:"type:int(11);not null;comment:问题热度"`
	User    User
}
